package com.lavegue.util;

import java.math.BigDecimal;

import com.lavegue.common.SystemConfig;

/**
 * author: luoweibin
 * date:2012-2-29
 * description:
 *
 */
public class TopupUtil {

	public static final int getMsgCntByPrice(BigDecimal price) {
		if (price.toString().equals("30")) {
			return SystemConfig.getPrice30();
		} else if (price.toString().equals("60")) {
			return SystemConfig.getPrice60();
		} else if (price.toString().equals("90")) {
			return SystemConfig.getPrice90();
		} else if (price.toString().equals("200")) {
			return SystemConfig.getPrice200();
		} else if (price.toString().equals("500")) {
			return SystemConfig.getPrice500();
		}  else if (price.toString().equals("3")) {
			return SystemConfig.getPrice3();
		}
		return 0;
	}
	
	public static void main(String[] args) {
		System.out.println(TopupUtil.getMsgCntByPrice(new BigDecimal("3")));
	}
}

